package cn.edu.scau.cmi.chenxiaoqin.exercise11;
import javax.swing.*;
import java.awt.*;
public class Example11_4 extends JFrame{
	JTabbedPane p;
	public Example11_4() {
		setBounds(100,100,500,300);
		setVisible(true);
		p=new JTabbedPane(JTabbedPane.LEFT);
		p.add("FlowLayout",new FlowLayoutJPanel());
		p.add("GridLayout",new GridLayoutJPanel());
		p.add("BorderLayout",new BorderLayoutJPanel());
		p.validate();
		add(p,BorderLayout.CENTER);
		validate();
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new Example11_4();
	}

}
